module Tools::SiteHealthsHelper
  
  def health_degree_with_color health_degree
    case 
    when health_degree > 80
      "<b class='good'>#{health_degree}%</b>"
    when health_degree >60
      "<b class='normal'>#{health_degree}%</b>"
    else
      "<b class='bad'>#{health_degree}%</b>"
    end
  end
end
